<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <title></title>
        <link rel="stylesheet" rev="stylesheet" href="{{$http_url}}/css/style.css" type="text/css" media="all" />

    </head>
    <body class="ContentBody">
        <form action="{{$http_url}}/user/userGroup/" method="post"  name="form" >
            <div class="MainDiv">
                <table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
                    <tr>
                        <th class="tablestyle_title" >{{if $group_id}}修改用户组{{else}}添加新用户组{{/if}}</th>
                    </tr>
                    <tr>
                        <td class="CPanel">
                            <table border="0" cellpadding="0" cellspacing="0" style="width:100%">
                                <tr>
                                    <td width="100%">
                                        <fieldset style="height:100%;">
                                            <legend>{{if $group_id}}修改用户组{{else}}添加新用户组{{/if}}</legend>
                                            <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
                                                <tr>
                                                    <td nowrap align="right" width="15%">用户组名称:</td>
                                                    <td width="35%"><input name='groupname' type="text" class="text" style="width:154px" {{if $details.0.groupname}}value="{{$details.0.groupname}}"{{/if}} />
                                                        <span class="red">*</span></td>
                                                </tr>
                                                <tr>
                                                    <td nowrap align="right" width="15%">&nbsp;</td>
                                                    <td width="35%">&nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td width="16%" align="right" nowrap="nowrap">用户组权限:</td>
                                                    <td width="34%">
                                                        {{foreach from=$left_menu item=menu}}
                                                              <input type="checkbox" name="hobby[]" value={{$menu.type}}  {{if in_array($menu.type,$permissions)}} checked {{/if}}>&nbsp;&nbsp;{{$menu.title}}<br>
                                                        {{/foreach}}
                                                    </td>
                                                </tr>

                                            </table>
                                            <br />
                                        </fieldset>
                                    </td>
                                </tr>
                            </TABLE>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center" height="50px">
                            <input type="submit" name="submit" value="保存" class="button" />　
                            <input type="button" name="Submit2" value="返回" class="button" onclick="window.history.go(-1);"/></td>
                    </tr>
                </table>
                </td>
                </tr>
                </table>
            </div>
            {{if $group_id}}
            <input type="hidden" name="groupid" value="{{$details.0.id}}">
            <input type="hidden" name="job" value="job">
            {{/if}}
        </form>
    </body>
</html>
